#include <iostream>
using namespace std;
int main()
{
	double h = 0;
	cin >> h;
	int i = 1;
	double total = h;
	do
	{
		h /= 2;
		total += h * 2;
		i++;
	} while (i <= 9);
	cout << total << endl;
	cout << h / 2 << endl;
	return 0;
}